export default {
	apiUrl: '',
	template: ``,
	data: function() {
		return {
			reqParam:'',/* reqParam:父组件参数（保留属性名） */
			sysContent:'sysContent'
		}
	},
	mounted(){
		//刷新时，自动挂载最后的子组件
		var url = location.hash;
		if(!url || url.endsWith('/view/main')){
			return false;
		}
		if(url!='#' && url.indexOf('#')==0){
			url = url.substring(1);
			ComponentUtil.build({
				url : url,
				parentInst: this ,//父组件vue组件实例
				componentSlot: 'sysContent'
			});
		}
	},
	methods: {
		/* 父组件回调（保留函数名） */
		parentCallback(param){},
		loadMenu(param){
			console.log('load menu,param is :',param);
			ComponentUtil.build({
				url : param,
				parentInst: this ,//父组件vue组件实例
				pushState:true,
				componentSlot:'sysContent'
			});
		}
	}
}